<template>
    <div>
        <div class="modal-overlay" style="display:none"></div>
        <div class="modal modal-no-buttons" style="display:none">
            <div class="modal-inner">
                <div class="modal-title">加载中</div>
                <div class="modal-text">
                    <div class="preloader"></div>
                </div>
            </div>
            <div class="modal-buttons"></div>
        </div>
    </div>
</template>

<script>
export default {}
</script>

<style lang="scss" scoped>
.modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10600;
  visibility: hidden;
}

.modal-overlay-visible {
  visibility: visible;
}

.modal {
    width: 13.5rem;
    position: fixed;
    z-index: 11000;
    left: 50%;
    margin-left: -6.75rem;
    margin-top: 0;
    top: 44%;
    text-align: center;
    border-radius: .35rem;
    color: #3d4145;
}

.modal-inner {
    padding: .75rem;
    border-radius: .35rem;
    position: relative;
    background-color: #e8e8e8;
}

.modal-title {
    font-weight: 500;
    font-size: .9rem;
    text-align: center;
    // display: none;
}

.modal-title+.modal-text {
    margin-top: .25rem;
}

.preloader {
    display: inline-block;
    width: 1.7rem;
    height: 1.7rem;
    -webkit-transform-origin: 50%;
    transform-origin: 50%;
    -webkit-animation: preloader-spin 1s steps(12, end) infinite;
    animation: preloader-spin 1s steps(12, end) infinite;
}

.preloader:after {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url("https://image.yuzijiang.tv/web/casting/img/loading.svg");
    left: .5rem;
    right: auto;
    background-position: 50%;
    background-size: 100%;
    background-repeat: no-repeat;
}

@-webkit-keyframes preloader-spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes preloader-spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
</style>
